<?php $this->beginContent('//layouts/main'); ?>
<div class="span-19">
	<div id="content">
		<?php echo $content; ?>
	</div><!-- content -->
</div>
<div class="span-5 last">
	<div id="sidebar">
		<?php
//			$this->beginWidget('zii.widgets.CPortlet', array(
//				'title'=>'导航栏',
//			));
			
			$meu_items=array(
				array('label'=>Yii::app()->getModule('user')->t("Login"), 'url'=>Yii::app()->getModule('user')->loginUrl, 'visible'=>Yii::app()->user->isGuest),
				array('label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'url'=>Yii::app()->getModule('user')->logoutUrl, 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Home', 'url'=>array('site/index'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'VIP Home', 'url'=>array('site/vipIndex'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Profile', 'url'=>array('user/profile/profile'), 'visible'=>!Yii::app()->user->isGuest),		
			);		
			
		//	$this->widget('zii.widgets.CMenu', array(
			$this->widget('application.extensions.emenu.EMenu', array(
		//		'items'=>$this->menu,
				'items'=>$meu_items,
				'vertical'=>true,
				'theme'=>'default',
				'rtl'=>true,
				'htmlOptions'=>array('class'=>'operations'),
				
			));
			
// 			$this->widget('application.extensions.efgmenu.EFgMenu',array(
// 			    'bDev'=>true,
// 			    'id'=>'vert1',
// 			    'items'=>$meu_items,
// 			    'menubarOptions' => array(
// 			        'direction'=>'vertical'
// 			)
// 			));
			
//			$this->endWidget();
		?>
	</div><!-- sidebar -->
</div>
<?php $this->endContent(); ?>

 
